package com.hsf.cloudweb.service;

import com.hsf.cloudweb.model.MySqlUserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name="eurekaClient")
public interface FeignService {

    @RequestMapping(value = "/eurekaClient/remoteIndex",method = RequestMethod.GET)
    String getUrl();

    @RequestMapping(value="/eurekaClient/userInfo",method = RequestMethod.GET)
    MySqlUserInfo getUserInfo(@RequestParam("userAccount") String userAccount);

}
